<template>
  <div>movie details</div>
  <div>电影id：{{ $route.params.id }}</div>
  <div>电影id：{{ id }}</div>
  <div>电影name：{{ name }}</div>
  <div>
    <a href="#" @click.prevent="houtui()">后退</a>
  </div>
</template>

<script setup lang="ts">
import { defineProps } from 'vue'
defineProps({
  id: String,
  name: String,
})
import { useRouter } from 'vue-router'
const router = useRouter()

const houtui = () => {
  router.go(-1)
}
</script>

<style scoped></style>
